package src.com.foreknow.demo3;

import java.util.Scanner;

/**
 *流程控制
 *       多选一的基本语法
 *              if（条件表达式1）{
 *                  代码1
 *              }else if（条件表达式2）{
 *                  代码2
 *              }else if（条件表达式3）{
 *                  代码3
 *              }else{
 *                  代码4
 *              }
 *
 */

public class ControllDemo3 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入积分：");
        int number = input.nextInt();
        double dis;
        if (number < 2000){
            dis =0.9;
        }else if (number >= 2000 && number < 4000){
            dis = 0.8;
        }else if (number >= 4000 && number < 8000){
            dis = 0.7;
        }else {
            dis = 0.6;
        }
        System.out.println("折扣是：" + dis);



    }
}

















